home *** CD-ROM | disk | FTP | other *** search
- Batch processing in DOS 3.00 will truncate lines
- that use %name% environment variables.
- (Of course there's no way to get IBM to admit to a problem
- in a feature they don't document.)
-
- For example (with set NAME=VALUE1)
-
- IF %NAME% == VALUE1 ECHO I GOT WHAT I WANT
-
- becomes
-
- IF VALUE1
- and causes a syntax error.
-
- IF VALUE1 == %NAME% ECHO I GOT IT
-
- becomes
-
- IF VALUE1 == VALUE1
- and you still have a problem.
-
- If %NAME% is the last word in a BAT line the problem
- goes undetected.
-
- GOTO %NAME%
-
- works fine.
-
- The following patch will make all well again.
-
-
- DEBUG COMMAND.COM
- u172b ;to verify the following
- xxxx:172B E8CD0E CALL 25FB
- xxxx:172E 06 PUSH ES
-
- a172b
- jmp 453a ;jump to patch - overlays a message "Access denied"
-
- a453a
- push cx
- call 25fb
- pop cx
- jmp 172e
-
- e47b0 61 ;makes version 3.00a in VER command so you know you have patch
- ;you can make this any character that pleases you.
-
- w ;should write 561a bytes
- q
-